<div class="jf-fr jf-w-334 ">
    <div>
        @if(isset($query->getAd(1)[0]))<a href="{{$query->getAd(1)[0]['url']}}"><img src="{{$query->getAd(1)[0]['cover']}}" /></a>@endif
    </div>


    <div class="jf-top-list jf-mt-20">
        <div class="jf-top-list-header">
            <a href="#" class="jf-button"><span class="jf-middle">热门排行</span><span class="fa fa-play-circle jf-middle"></span></a>
            <span class="jf-fr jf-fw"><span>周排行</span>&nbsp;|&nbsp;<span>月排行</span></span>
        </div>
        <ul class="jf-top-list-item-group">
            @foreach($query->getTop() as $key => $val )
                <li class="jf-top-list-item"><span class="jf-num">{{ $key+1 }}</span><a href="/post/{{$val->post_id}}" class="jf-post-title">{{mb_substr($val->title,0,19)}}</a></li>
            @endforeach

        </ul>
    </div>

    <div class="jf-mt-20">
        @if(isset($query->getAd(2)[0]))<a href="{{$query->getAd(2)[0]['url']}}"><img src="{{$query->getAd(2)[0]['cover']}}" /></a>@endif
    </div>


    <div class="jf-mt-20">
        @if($item = $query->getRec(6,4))
            <div class="jf-top-list-header">
                <a href="#" class="jf-button"><span class="jf-middle">推荐阅读</span><span class="fa fa-play-circle jf-middle"></span></a>
            </div>
            <ul class="jf-c-2">
                @foreach($item as $k => $v)
                    <li><a href="/post/{{$v->id}}"><img  src="{{$v->cover}}"  style="width:158px;height:60px;"  /></a><div class="jf-fs-13">{{mb_substr($v->title,0,12)}}</div></li>
                @endforeach
            </ul>
        @endif



    </div>

    <div class="jf-mt-20">
        @if(isset($query->getAd(5)[0]))<a href="{{$query->getAd(5)[0]['url']}}"><img src="{{$query->getAd(5)[0]['cover']}}" /></a>@endif
    </div>

    <div class="jf-mt-20 jfn-hot-company">
        <div class="jf-top-list-header">
            <a href="#" class="jf-button"><span class="jf-middle">热门企业</span><span class="fa fa-play-circle jf-middle"></span></a>
        </div>
        <ul class="jfs-hot-list">
            @if($query->getFriend(5,8))
                @foreach($query->getFriend(5,8) as $key => $val)
                    <li><a href="{{$val->url}}"><img src="{{$val->cover}}" style="width:157px;height:53px;" /></a></li>
                @endforeach
            @endif
        </ul>
    </div>


</div>
